package hu;

import java.util.*;

public class color_num {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] nums = new int[n];
        for (int i = 0; i < n; i++) {
            nums[i] = sc.nextInt();
        }
        Arrays.sort(nums);
        int sum = 1;
        bb : for (int i = 1; i < n; i++) {
            for (int j = 0; j < i; j++) {
                if(nums[i] % nums[j] == 0){
                    continue bb;
                }
            }
            sum++;
        }
        System.out.println(sum);
    }
}
